package com.itheima.service;



import com.itheima.common.SnowFlake;
import com.itheima.mapper.admin.CategoryMapper;
import com.itheima.pojo.client.SelectCategoryListVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @author ChenJunJie
 * @date 2022/6/18 17:23
 * 分类列表service层
 */
@Service
public class CategoryService {
    @Autowired
    private RedisTemplate<String, String> redisTemplate;
    @Autowired
    private SnowFlake snowFlake;
    @Autowired
    private CategoryMapper categoryMapper;

    //查询分类列表
    public List<SelectCategoryListVo> selectCategoryList(){

        return categoryMapper.selectCategoryList();

    }

}
